home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / inventor / ivcalc / Makefile < prev    next >
Encoding:
Makefile  |  1994-08-02  |  2.0 KB  |  75 lines

  1. #!smake
  2. # The previous magic comment will cause the parallel make utility
  3. # 'smake' to be used.
  4.  
  5. include $(ROOT)/usr/include/make/commondefs
  6.  
  7. # C++ source files:
  8. C++FILES = ivcalc.c++
  9.  
  10. # The name of the executable to be created:
  11. C++TARGETS = $(C++FILES:.c++=) 
  12.  
  13. TARGETS = $(C++TARGETS)
  14.  
  15. # Symbol needed by X for proper function prototypes
  16. LC++DEFS = -DFUNCPROTO
  17.  
  18. # Options to C++; see the CC manual page for what they do
  19. LC++OPTS = +p -Wf,-XNp10000
  20.  
  21. SOXT  = -lInventorXt
  22.  
  23. # Libraries to link with:
  24. C++LLDLIBS = -lInventor -lfm -limage -lgl -laudio -laudiofile -L. -lm -lmalloc
  25.  
  26. MOTIFLIBS = -lXirisw -lXm -lXt -lX11 -lPW
  27.     
  28. # Don't optimize; instead, compile for easy debugging:
  29. # (the default value of OPTIMIZER, define in commondefs, is -O)
  30. OPTIMIZER = -g
  31.  
  32. # By default, compile C++TARGETS 
  33. default: $(C++TARGETS)
  34.  
  35.  
  36. # Allow compilation of all
  37. all: $(TARGETS)
  38.  
  39. #
  40. # Commonrules relies on commondefs, and defines some Makefile targets
  41. # that are very useful when developing programs.  For example, it
  42. # defines a 'depend' target, so you can type 'make depend' and have
  43. # all header-file dependencies generated for you, or type 'make clean'
  44. # to remove all .o files (or other files generated during
  45. # compilation). See the file /usr/include/make/commonrules for
  46. # documentation on what targets are supported.
  47. #
  48. include $(COMMONRULES)
  49.  
  50. #
  51. # Compilation rules for C++TARGETS 
  52. #
  53. $(C++TARGETS): $$@.o
  54.     $(C++F) -o $@ $@.o $(SOXT) $(C++LLDLIBS) $(MOTIFLIBS) $(LDFLAGS)
  55.  
  56.  
  57. TEXTURES   = corinth.rgb redmar.rgb
  58. SOUNDS     = belltree_up2.aiff drm_clave.aiff
  59. EXECUTABLE = ivcalc
  60. TEXTUREDIR = $(ROOT)/usr/demos/data/textures
  61. SOUNDSDIR  = $(ROOT)/usr/lib/sounds/prosonus/instr
  62. EXEDIR     = $(ROOT)/usr/sbin
  63. PUT        = ${INSTALL} -idb 4Dgifts.src.ivcalc -u 4Dgifts -g guest 
  64. PUTT       = ${PUT} -m 0644 -F ${TEXTUREDIR}
  65. PUTS       = ${PUT} -m 0755 -F ${SOUNDSDIR}
  66. PUTE       = ${PUT} -m 0755 -F ${SOUNDSDIR}
  67.  
  68. install: 
  69. #    ${PUT} -m 0755 -dir -F ${PARDIR} ghostview
  70.     ${PUTT} ${TEXTURES}
  71.     ${PUTS} ${SOUNDS}
  72.     ${PUTE} ${EXECUTABLE}
  73. #        ${PUTF} -src Makefile.dev Makefile
  74.  
  75.